package com.atguigu.chapter04.myfor

object MultiFor {
	def main(args: Array[String]): Unit = {
		for (i <- 1 to 3; j <- 1 to 3) {
			println(" i =" + i + " j = " + j) //输出即句 9
		}

		//上面的写法，可以写成
		println("--------------------------")
		for (i <- 1 to 3) {
			for (j <- 1 to 3) {
				println(" i =" + i + " j = " + j) //输出即句 9
			}
		}

	}
}
